#include <stdio.h>

int main(int argc, char *argv[]) {

    int n, m, k;
    scanf("%d %d %d", &n, &m, &k);

    int nums[n][m];

    for (size_t i = 0; i < n; i++)
    {
        for (size_t z = 0; z < m; z++)
        {
            scanf("%d", &nums[i][z]);
        }
    }

    for (size_t y = 0; y < m; y++)
    {
        printf("%d ", nums[k-1][y]);
    }
    
    return 0;
}